import request from '@/utils/request'


export function getMessage(params) {
  return request({
    url: '/api/message/getMessage',
    method: 'get',
    params
  })
}

export function addMessage(data) {
  return request({
    url: '/api/message/addMessage',
    method: 'post',
    data
  })
}
export function updateMessage(data) {
  return request({
    url: '/api/message/updateMessage',
    method: 'post',
    data
  })
}

export function delMessage(data) {
  return request({
    url: '/api/message/delMessage',
    method: 'post',
    data
  })
}
export function delAllMessage(data) {
  return request({
    url: '/api/message/delAllMessage',
    method: 'post',
    data
  })
}

export function getMessageAdminAll(params) {
  return request({
    url: '/api/message/getMessageAdminAll',
    method: 'get',
    params
  })
}

